<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});
//创建es索引
Route::get('es/createindex','NewsController@createindex');
//创建索引数据
Route::post('es/save','NewsController@save');
//搜索
Route::get('es/search','NewsController@search');



//引入定义好的后台路由文件
include base_path('routes/admin/admin.php');
